# -*- coding:utf-8 -*-
class Solution:
    def Power(self, base, exponent):
        # write code here
        # if exponent == 1:
        #     return base
        # if exponent == 0:
        #     return 1
        # if exponent == -1:
        #     return 1 / base
        # result = self.Power(base, exponent >> 1)
        # result *= result
        # if (exponent & 0x1) == 1:
        #     return result * base
        # return result

        flag=0
        if exponent == 1:
            return base
        if exponent == 0:
            return 1
        if exponent < 0:
            flag = 1
        result = 1
        for i in range(abs(exponent)):
            result *= base
        if flag==1:
            return 1/result
        return result



b = -2
e=-2
s=Solution()
m=s.Power(b,e)
print(m)